<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_validate.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>{:C('WEB_TITLE')}</title>
    <meta name="keywords" content="{:C('WEB_KEYWORDS')}">
    <meta name="description" content="{:C('WEB_DESC')}">

    <link rel="shortcut icon" href="__PUBLIC__/favicon.ico">
    <link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/js/plugins/jedate/skin/jedate.css">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-6">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>修改用户信息</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm" action="{:U('Admin/update_edit')}" method="post">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">姓名：</label>
                            <div class="col-sm-5">
                                <input id="name" name="name" class="form-control" type="text" value="{$data.name}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">性别：</label>
                            <div class="col-sm-5">
                                <if condition = "$data.sex eq 1">
                                <input type="radio" checked="true" name="sex"  value="1" />男
                                <input type="radio" name="sex"  value="2" />女
                                    <else/>
                                    <input type="radio"  name="sex"  value="1" />男
                                    <input type="radio" checked="true" name="sex" value="2" />女
                                    </if>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">出生年月：</label>
                            <div class="col-sm-8" style="width: 300px;">
                                <input onclick="dates(this)" id="birthday" name="birthday" class="form-control" type="text" value="{$data.birthday|date="Y-m-d",###}" placeholder="双击选择日期"   readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">简介：</label>
                            <div class="col-sm-5">
                                <textarea rows="5" cols="10" id="introduction" name="introduction" class="form-control">{$data.introduction}</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">公司：</label>
                            <div class="col-sm-5">
                                <input id="company" name="company" class="form-control" type="text" value="{$data.company}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">部门：</label>
                            <div class="col-sm-5">
                                <input id="department" name="department" class="form-control" type="text" value="{$data.department}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">职位：</label>
                            <div class="col-sm-5">
                                <input id="position" name="position" class="form-control" type="text" value="{$data.position}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">邮箱：</label>
                            <div class="col-sm-5">
                                <input id="email" name="email" class="form-control" type="email" value="{$data.email}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">电话：</label>
                            <div class="col-sm-5">
                                <input id="phone" name="phone" class="form-control" type="text" value="{$data.phone}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">手机：</label>
                            <div class="col-sm-5">
                                <input id="mobilephone" name="mobilephone" class="form-control" type="text" value="{$data.mobilephone}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">地址：</label>
                            <div class="col-sm-5">
                                <input id="address" name="address" class="form-control" type="text" value="{$data.address}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">网址：</label>
                            <div class="col-sm-5">
                                <input id="web" name="web" class="form-control" type="text" value="{$data.web}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">密码：</label>
                            <div class="col-sm-5">
                                <input id="password" name="password" class="form-control" type="password" value="">
                                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 需要修改密码时才填写密码项</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">确认密码：</label>
                            <div class="col-sm-5">
                                <input id="repass" name="repass" class="form-control" type="password" value="">
                                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 请再次输入您的密码</span>
                            </div>
                        </div>
                        <input type="hidden"  name="id" value="{$data.id}"/>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button class="btn btn-primary" type="submit" >提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="__PUBLIC__/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/js/content.min.js?v=1.0.0"></script>
<script src="__PUBLIC__/js/plugins/validate/jquery.validate.min.js"></script>
<script src="__PUBLIC__/js/plugins/validate/messages_zh.min.js"></script>
<!--<script src="__PUBLIC__/js/demo/form-validate-demo.min.js"></script>-->
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_validate.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:16 GMT -->
<script type="text/javascript">
    $().ready(function() {
// 在键盘按下并释放及提交后验证提交表单
        $("#signupForm").validate({
            rules: {
                name: {
                    required: true,
                    rangelength: [2,15]
                },
            },
            messages: {
                name: {
                    required: "请输入您的名字",
                    rangelength: "必须2个字符以上"
                },


            }
        });


    });

    // 双击日期选择
    function dates(e) {
        $.getScript("__PUBLIC__/js/plugins/jeDate/jquery.jedate.min.js",function(){
            var name = e.id;
            $.jeDate($('#'+name), {
                skinCell: "jedategreen",
                isinitVal: true,
                festival: false,
                ishmsVal: false,
                minDate: '1930-01-01 00:00:00', //设定最小日期为当前日期
                maxDate: $.nowDate(0),
                format: "YYYY-MM-DD",
                zIndex: 3000,
            });
        });
    }
</script>

</html>
